package StudyCode.summary.myfile;

import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class FilesNoExits {
	public static void main(String[] args) {
		Path path = FileSystems.getDefault().getPath("E:\\迅雷下载\\test1.txt");
		boolean pathExists = Files.notExists(path, LinkOption.NOFOLLOW_LINKS);
		System.out.println("文件 " + path + " 是否不存在？" + pathExists);

	}
}
